<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include::header('字典设置')" />
</head>
<body class="febs-container">
    <div class="febs-body layui-fluid" id="febs-dict" lay-title="字典设置">
        <div class="febs-body-search">
            <form class="jhg-body layui-form layui-table-form" lay-filter="dict-table-form" id="dict-table-form">
                <div class="layui-card">
                    <div class="layui-card-body">
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label layui-form-label-sm">字典编码</label>
                                <div class="layui-input-inline" >
                                    <input type="text" name="dictCode" autocomplete="off" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label layui-form-label-sm">字典名称</label>
                                <div class="layui-input-inline" >
                                    <input type="text" name="dictName" autocomplete="off" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label layui-form-label-sm">状态</label>
                                <div class="layui-input-inline">
                                    <select name="status" lay-search="" >
                                        <option value="">请选择</option>
                                        <option value="0">禁用</option>
                                        <option value="1" selected>启用</option>
                                    </select>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <div id="query" class="layui-btn">
                                    <em class="layui-icon">&#xe615;</em> 查询
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </form>
        </div>

        <div class="febs-table-full">
            <table id="dictTable" lay-filter="dictTable" lay-data="{id: 'dictTable'}"></table>
        </div>
    </div>
    <th:block th:include="include::foot" />
        <script type="text/html" id="dict-toolbar">
            <div lay-event="add" class="layui-btn layui-btn-sm">
                <em class="layui-icon">&#xe654;</em> 新增
            </div>
        </script>
    <script type="text/html" id="dict-option">
        <button type="button" class="layui-btn layui-btn-xs layui-btn-primary layui-border-orange" lay-event="edit">
            <i class="layui-icon layui-icon-edit"></i>
            编辑
        </button>
        <button type="button" class="layui-btn layui-btn-xs layui-btn-primary layui-border-red" lay-event="del" >
            <i class="layui-icon layui-icon-delete"></i>
            删除
        </button>
    </script>
    <script type="text/html" id="status-bar">
        <input type="checkbox" name="dictStatus" value="{{d.status}}" lay-skin="switch" lay-text="启用|禁用"
               lay-filter="dictStatus" lay-event="dictStatus"  {{ d.status == '1' ? 'checked' : '' }} data-id="{{d.dictId}}" />
    </script>
    <script th:src="@{/febs/js/dict/dict/dictList.js}"></script>
</body>
</html>